<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" StylesheetTheme="Default" AutoEventWireup="false" CodeFile="QuestionnaireTaker.aspx.vb" Inherits="Secure_QuestionnaireTaker" title="Taking Questionnaire" %>
<%@ Register Src="~/Secure/Controls/ansLoader.ascx" TagName="ansLoader" TagPrefix="uc1" %>
<%@ Register Src="~/Secure/Controls/QuestionnaireHeader.ascx" TagName="QuestionnaireHeader" TagPrefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table id="Table1" cellpadding="2" cellspacing="2" width="100%">
        <tr>
            <td colspan="3">
                </td>
            <td align="right" colspan="1">
                <asp:HyperLink ID="hlBack" runat="server" NavigateUrl="~/Secure/QuestionnaireList.aspx" ForeColor="Blue">Back</asp:HyperLink></td>
        </tr>
        <tr>
            <td rowspan="1" valign="top" width="15">
                &nbsp;</td>
            <td valign="top">
                <table border="0" cellpadding="8" cellspacing="0" style="height:300px;width:800px;" >
                    <tr style="height:5%;">
                        <td colspan="7">
                            <uc2:QuestionnaireHeader ID="QuestionnaireHeader1" runat="server" />
                        </td>
                    </tr>
                    <tr style="height:5%;background-color: #00ffcc">
                        <td valign=top width="55" nowrap="noWrap">
                            <a name="questionarea" />
                            <asp:Label ID="lblQuestionNumber" runat="server" Text="Q# ??" Font-Bold="True" Font-Italic="False" ForeColor="Blue"></asp:Label>
                        </td>
                        <td valign=top class="tdQuestion" colspan=6 >
                            <asp:Label ID="lblQuestion" runat="server" Text="There is no assigned question for this questionnaire." Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                    <tr style="font-size:0;height:1px;background-color: infobackground">
                        <td rowspan="2" style="width: 55px;">&nbsp;</td>
                        <td style="width: 40px;">&nbsp;</td>
                        <td style="width: 180px;">&nbsp;</td>
                        <td style="width: 40px;">&nbsp;</td>
                        <td style="width: 180px;">&nbsp;</td>
                        <td style="width: 510px;">&nbsp;</td>
                        <td style="width: 10px;">&nbsp;</td>
                    </tr>
                    <tr valign=top style="height:60%;background-color: infobackground">
    <asp:PlaceHolder ID="phLoader" runat="server"></asp:PlaceHolder>
    <asp:XmlDataSource ID="ControlXDS" runat="server" DataFile="~/Secure/Controls/ControlList.xml">
    </asp:XmlDataSource> 
                    </tr>                        
                    <tr style="height:30%;">
                        <td colspan=7 valign="bottom">
                            <table width=100%>
                                <tr>
                                    <td rowspan=2 valign=top width=90%>
                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                                    </td>
                                    <td align=center>
        <asp:Button ID="Button2" runat="server" Text="Save Answer" Enabled="False" PostBackUrl="QuestionnaireTaker.aspx#questionarea" />
                                    </td>
                                </tr>
                                <tr>
                                    <td nowrap=nowrap >
        <asp:Button ID="Button1" runat="server" Text="|<<" CausesValidation="False" Enabled="False" PostBackUrl="QuestionnaireTaker.aspx#questionarea" />
                            <asp:Button ID="Button3" runat="server" Text="<<" CausesValidation="False" Enabled="False" PostBackUrl="QuestionnaireTaker.aspx#questionarea" />&nbsp;
        <asp:Button ID="Button4" runat="server" Text=">>" CausesValidation="False" Enabled="False" PostBackUrl="QuestionnaireTaker.aspx#questionarea" />
                            <asp:Button ID="Button5" runat="server" Text=">>|" CausesValidation="False" Enabled="False" PostBackUrl="QuestionnaireTaker.aspx#questionarea" />
                                    </td>
                                </tr>
                            </table><hr />
                <asp:Repeater ID="QuestionNav" runat="server">
                    <ItemTemplate>
                        <asp:LinkButton runat="server" CausesValidation=false CommandName="GetQuestionNode" CommandArgument='<%#Eval("uid")%>'
                            Text='<%#IsCurrent(Container.ItemIndex+1)%>' Enabled='<%# IsEnabledQuestion(Eval("uid")) %>' />&nbsp;
                    </ItemTemplate>
                </asp:Repeater></td>
                    </tr>
                </table>
            </td>
            <td colspan="2"  valign="top"></td>
        </tr>
    </table>
</asp:Content>

